package com.bbex.controller;


import com.bbex.pojo.GlobalMessageResponseVo;
import com.bbex.service.EntActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import reactor.core.publisher.Mono;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Title :
 * Description : 活动管理
 * Copyright (C) zw.FinTec
 *
 * @author department:研发部
 * @version 修改历史:
 *          修改人 修改日期 修改描述
 *          -------------------------------------------<
 */
@Controller
@RequestMapping("/bbuni/activity")
public class EntActivityController  {
    @Autowired
    private EntActivityService entActivityService;

    /**
     *  获取轮播图
     * @return
     */
    //@CrossOrigin(origins = {"*", "null"})
    @RequestMapping("/getLunBoImge")
    @ResponseBody
    public Mono getLunBoImge(){
        List<Map> list = entActivityService.getLunBoImge();
        return  Mono.just(GlobalMessageResponseVo.newSuccessInstance(list));
    }


}
